package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: FileChangeLog
 * @Description: TODO
 * @author fanyb
 * @date Aug 18, 2015 2:17:08 PM
 * @version v1.0
 */
@Entity
@Table(name = "file_change_log", catalog = "ebeim")
public class FileChangeLog {
  private String id;
  private String fileId;
  private String version;
  private String optype;
  private Long fileSize;
  private String fileType;
  private String result;
  private String signature;
  private String datasourceId;
  private Long logTime;
  
  @Id
  @Column(name = "id", unique = true, nullable = false, length = 45)
  @GeneratedValue(generator = "ID")
  @GenericGenerator(name = "ID", strategy = "uuid")
  public String getId() {
    return id;
  }
  
  public void setId(String id) {
    this.id = id;
  }
  
  @Column(name = "file_id")
  public String getFileId() {
    return fileId;
  }
  
  public void setFileId(String fileId) {
    this.fileId = fileId;
  }
  
  @Column(name = "version")
  public String getVersion() {
    return version;
  }
  
  public void setVersion(String version) {
    this.version = version;
  }
  @Column(name = "log_time")
  public Long getLogTime() {
    return logTime;
  }

  public void setLogTime(Long logTime) {
    this.logTime = logTime;
  }

  @Column(name = "optype")
  public String getOptype() {
    return optype;
  }
  
  public void setOptype(String optype) {
    this.optype = optype;
  }
  
  @Column(name = "file_size")
  public Long getFileSize() {
    return fileSize;
  }
  
  public void setFileSize(Long fileSize) {
    this.fileSize = fileSize;
  }
  
  @Column(name = "file_type")
  public String getFileType() {
    return fileType;
  }
  
  public void setFileType(String fileType) {
    this.fileType = fileType;
  }
  
  @Column(name = "result")
  public String getResult() {
    return result;
  }
  
  
  public void setResult(String result) {
    this.result = result;
  }
  
  @Column(name = "signature")
  public String getSignature() {
    return signature;
  }
 
  public void setSignature(String signature) {
    this.signature = signature;
  }
  
  @Column(name = "datasource_id")
  public String getDatasourceId() {
    return datasourceId;
  }
  
  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }
}
